#if !defined(AFX_AWTTEXTFIELDPEER_H__DCE3E986_423F_11D2_A3F2_006097A44215__INCLUDED_)
#define AFX_AWTTEXTFIELDPEER_H__DCE3E986_423F_11D2_A3F2_006097A44215__INCLUDED_

#if _MSC_VER >= 1000
#pragma once
#endif // _MSC_VER >= 1000
// AWTTextFieldPeer.h : header file
//

#include "AWTTextComponentPeer.h"

/////////////////////////////////////////////////////////////////////////////
// AWTTextFieldPeer window

class AWTTextFieldPeer : public CEdit,
                         public AWTTextComponentPeer
{
DECLARE_DYNAMIC(AWTTextFieldPeer)
// Construction
public:
	AWTTextFieldPeer(AWTComponent* comp);

// Attributes
public:

// Operations
public:

// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(AWTTextFieldPeer)
	//}}AFX_VIRTUAL

// Implementation
public:
	virtual ~AWTTextFieldPeer();

//AWTTextComponentPeer interface
  virtual void getText(CString& text);
  virtual void setText(CString& text);
  virtual void setEditable(BOOL b);
  virtual int  getSelectionStart();
  virtual int  getSelectionEnd();
  virtual void select(int start, int end);
  virtual void setCaretPosition(int pos);
  virtual int  getCaretPosition();

	// Generated message map functions
protected:
	//{{AFX_MSG(AWTTextFieldPeer)
	afx_msg void OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg void OnKillFocus(CWnd* pNewWnd);
	afx_msg void OnSetFocus(CWnd* pOldWnd);
	afx_msg void OnKeyUp(UINT nChar, UINT nRepCnt, UINT nFlags);
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg long OnAWTSetText(UINT, LONG);
	afx_msg HBRUSH CtlColor(CDC* pDC, UINT nCtlColor);
	afx_msg void OnChange();
	afx_msg UINT OnGetDlgCode();
	afx_msg void OnLButtonDblClk(UINT nFlags, CPoint point);
	afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()

	AWTComponent* m_comp;
	CWnd* m_AWTWindow;
};

/////////////////////////////////////////////////////////////////////////////

//{{AFX_INSERT_LOCATION}}
// Microsoft Developer Studio will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_AWTTEXTFIELDPEER_H__DCE3E986_423F_11D2_A3F2_006097A44215__INCLUDED_)
